const ModulesFile = import.meta.glob('./*.js', { eager: true })

const RouterList = []

Object.values(ModulesFile).map((item) =>{
    if(item.default)
    {
        RouterList.push(...item.default)
    }
})

const layout = {
    template: `<router-view></router-view>`
}

export default  [
    {
        path: '/team',
        component:layout,
        children: RouterList
    }
    
];